package com.tarena.baking.common.ex;

import com.tarena.baking.response.StatusCode;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public class ServiceException extends RuntimeException {

    @Getter
    private StatusCode statusCode;

    public ServiceException(StatusCode serviceCode, String message) {
        super(message);
        this.statusCode = serviceCode;
    }
}
